.class final Lcom/inmobi/androidsdk/impl/imai/a;
.super Ljava/lang/Object;
.source "IMAIUtility.java"

# interfaces
.implements Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/inmobi/androidsdk/impl/imai/IMAIUtility;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 209
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public notifyResult(ILjava/lang/Object;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 212
    const-string v0, "InMobiAndroidSDK_3.7.0"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Got PING IN WEBVIEW callback. Status: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "webview: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/inmobi/commons/internal/Log;->internal(Ljava/lang/String;Ljava/lang/String;)V

    .line 213
    if-nez p2, :cond_1

    .line 223
    :cond_0
    :goto_0
    return-void

    .line 215
    :cond_1
    instance-of v0, p2, Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback$ResponseStatus;

    if-eqz v0, :cond_0

    .line 217
    check-cast p2, Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback$ResponseStatus;

    .line 218
    if-nez p1, :cond_2

    .line 219
    invoke-virtual {p2}, Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback$ResponseStatus;->getWebviewRef()Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {p2}, Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback$ResponseStatus;->getClickUrl()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/inmobi/androidsdk/impl/imai/IMAIUtility;->firePingInWebViewSuccessful(Ljava/lang/ref/WeakReference;Ljava/lang/String;)V

    goto :goto_0

    .line 221
    :cond_2
    invoke-virtual {p2}, Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback$ResponseStatus;->getWebviewRef()Ljava/lang/ref/WeakReference;

    move-result-object v0

    const-string v1, "IMAI Ping in webview failed"

    const-string v2, "pingInWebview"

    invoke-virtual {p2}, Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback$ResponseStatus;->getClickUrl()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v1, v2, v3}, Lcom/inmobi/androidsdk/impl/imai/IMAIUtility;->fireErrorEvent(Ljava/lang/ref/WeakReference;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
